<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:73:"/Users/qingyun/php/fruits/public/../application/home/view/index_index.tpl";i:1515035459;s:59:"/Users/qingyun/php/fruits/application/home/view/layout1.tpl";i:1515032902;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

</head>
<body>
<script src="/static/common/js/jquery1.42.min.js" type="text/javascript"></script>
<script src="/static/common/js/common_js.js" type="text/javascript"></script>
<script src="/static/common/js/footer.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/static/con/css/style.css" />
<link rel="stylesheet" type="text/css" href="/static/con/css/shopping-mall-index.css" />
<script type="text/javascript" src="/static/con/js/jquery.js"></script>
<script src="/static/common/js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
<script type="text/javascript" src="/static/con/js/zhonglin.js"></script>
<script type="text/javascript" src="/static/con/js/zhongling2.js"></script>
<script type="text/javascript" src="/static/con/js/jquery.provincesCity.js"></script>
<script type="text/javascript" src="/static/con/js/provincesData.js"></script>
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script>
<link href="/static/common/css/page.css" rel="stylesheet" type="text/css" />
<link href="/static/common/css/common.css" rel="stylesheet" type="text/css" />
<link href="/static/common/css/style.css" rel="stylesheet" type="text/css" />
<!--顶部样式-->
<div id="top">
    <div class="top" style="height: 0px">
        <div class="Collection"><em></em><a href="#">收藏我们</a></div>
        <div class="hd_top_manu clearfix">
            <ul class="clearfix">
                <?php if(session('?UserXinxi') == false): ?>
                    <li class="hd_menu_tit zhuce" data-addclass="hd_menu_hover">欢迎光临本店！<a href="<?php echo url('home/Login/index'); ?>" class="red">[请登录]</a> 新用户<a href="<?php echo url('home/User/add'); ?>" class="red">[免费注册]</a></li>
                <?php else: ?><li class="hd_menu_tit zhuce" data-addclass="hd_menu_hover">欢迎光临本店！<a href="<?php echo url('home/User/userInfo'); ?>" class="red">个人信息</a><a href="<?php echo url('home/User/loginOut'); ?>" class="red">退出登录</a></li>

                <li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="/home/commodity/orderlook">我的订单</a></li>
                <li class="hd_menu_tit hd_Shopping_Cart" data-addclass="hd_menu_hover">
                    <a href="<?php echo url('home/commodity/cart'); ?>" class="hd_menu">查看购物车(<b class="eee">0</b>)</a>
                </li>
                <?php endif; ?>
            </ul>
        </div>
    </div>
</div>
<div id="header"  class="header">
    <div class="logo"><a href="#"><img src="/static/common/images/logo.png" /></a></div>
    <div class="Search">
        <p><input name="" type="text"  class="text"/><input name="" type="submit" value="搜索"  class="Search_btn"/></p>

    </div>

</div>
<!--导航栏样式-->
<div id="Menu">
    <div class="Menu_style">

        <!--菜单栏-->
        <div class="Navigation" id="Navigation">
            <ul class="Navigation_name">
                <li><a href="<?php echo url('home/index/index'); ?>">首页</a></li>
                <?php foreach($columnInfo as $vo): ?>
                <li><a href="<?php echo url('home/commodity/lists'); ?>?cid=<?php echo $vo['id']; ?>"><?php echo $vo['title']; ?></a></li>
                <?php endforeach; ?>
            </ul>
        </div>
        <script>$("#Navigation").slide({titCell:".Navigation_name li"});</script>
        <!--购物车-->
        <div class="Shopping_car">
            <em></em> 购物车(<b class="eee">0</b>)
        </div>
    </div>
</div>


<!--正文-->


<title>商城首页</title>
</head>
<body>


<!--幻灯片样式-->
 <div class="">
   	<div id="slideBox" class="slideBox">
			<div class="hd">
				<ul></ul>
			</div>
			<div class="bd">
				<ul>
					<li><a href="#" target="_blank"><img src="/static/common/images/bananer_22.png"/></a></li>
					<li><a href="#" target="_blank"><img src="/static/common/images/bananer_22.png" /></a></li>
					<li><a href="#" target="_blank"><img src="/static/common/images/bananer_22.png" /></a></li>
				</ul>
			</div>

			<!-- 下面是前/后按钮代码，如果不需要删除即可 -->
			<a class="prev" href="javascript:void(0)"></a>
			<a class="next" href="javascript:void(0)"></a>

		</div>
		<script type="text/javascript">
		jQuery(".slideBox").slide({titCell:".hd ul",mainCell:".bd ul",autoPlay:true,autoPage:true});
		</script>

 </div>
 <div id="mian">

 <!--热卖产品样式-->
 <div class="Selling">
   <div class="title_name">热销产品<span class="ew">Hot Products</span> <span class="jiesao">本商城最热销产品，保证安全同时与客户的见证</span><span class="more"><a href="#">更多<< </a></span></div>
   <div class="Selling_list">
    <ul class="list">
        <?php foreach($se_commodity as $vo): ?>
		<li>
	  <div class="p_img"><a href="<?php echo url('home/commodity/buy'); ?>?id=<?php echo $vo['id']; ?>"><img src="<?php echo $vo['image']; ?>" /></a></div>
	  <div class="p_info">
	    <p><a href="<?php echo url('home/commodity/buy'); ?>?id=<?php echo $vo['id']; ?>"><?php echo $vo['name']; ?></a></p>
		<p class="jiage"><?php echo $vo['price']; ?>元/箱</p>
	  </div>
	 </li>
        <?php endforeach; ?>
	</ul>  
   </div>
 </div>
 <!--1楼水果样式-->
 <div id="Fruits_1f">
	 <div class="Product_title"><span>Look!</span>产品展示</div>
  		<div class="Fruits_Show">
   			<div class="Fruits_one">
     			<div class="link_name">
	   				<div class="p_name">冰凉一夏</div>
					<br>
					<div class="link">
						<p>
							<a href="/home/commodity/buy?id=2">苹果</a>
							<a href="/home/commodity/buyid=14">榴莲</a>
							<a href="/home/commodity/buy?id=1">梨子</a>
							<a href="/home/commodity/buy?id=5">葡萄</a>
						<p>
							<a href="/home/commodity/buy?id=6">樱桃</a>
							<a href="/home/commodity/buy?id=10">哈密瓜</a>
							<a href="/home/commodity/buy?id=4">草莓</a>
						</p>
					</div>
	 			</div>
	 		<div class="Fruits_shuigou_a"><a href="#"><img src="/static/common/images/sg_14.png" /></a></div>
   			</div>
			<div class="Fruits_two">
				<div class="p_con_a"><a href="#"><img src="/static/common/images/sg_10.png" /></a></div>
				<div ><a href="#"><img src="/static/common/images/sg_17.png" /></a></div>
   			</div>
   			<div class="Fruits_there">
     <ul id="lists">
		 <?php foreach($se_commodity as $vos): ?>
			 <li>
				 <div class="xianhi">
					 <a href="<?php echo url('home/commodity/buy'); ?>?id=<?php echo $vos['id']; ?>">						<p><img src="<?php echo $vos['image']; ?>" style="width: 208px;height: 170px" /></p>
						<p><?php echo $vos['name']; ?></p>
						<p class="Price"><?php echo $vos['price']; ?>元/箱</p>
				   	</a>
				 </div>
				 <div class="Detailed" style="width: 188.5px;height: 240px">
					 <div class="content" style="margin-top: 180px">
				  		<p><?php echo $vos['details']; ?></p>
				  		<p class="center"><a href="<?php echo url('home/commodity/buy'); ?>?id=<?php echo $vos['id']; ?>" class="Buy_btn">立即购买</a></p>
					 </div>
				 </div>
			  </li>
		 <?php endforeach; ?>
	 </ul>
   </div>
  </div>
 </div>
 <!--2楼蔬菜-->
 <div class="slogen">
   <p><img src="/static/common/images/fuwu_56.png" /></p>
   <p><img src="/static/common/images/fuwu_57.png" /></p>
   <p><img src="/static/common/images/fuwu_58.png" /></p>
   <p><img src="/static/common/images/fuwu_59.png" /></p>
 </div>

</div>
<div id="bottom">
	<div class="footers">
		<div class="logo"></div>
		<div class="footer_link">


		</div>
	</div>
</div>
<!--右侧菜单栏购物车样式-->
<div class="fixedBox">
	<ul class="fixedBoxList">
		<li class="fixeBoxLi cart_bd" style="display:block;" id="cartboxs">
			<p class="good_cart">(<b class="eee">0</b>)</p>
			<a href="/home/commodity/cart">
				<span class="fixeBoxSpan"></span>
				<strong>购物车</strong>
			</a>
		</li>
		<li class="fixeBoxLi Home">
			<a href="<?php echo url('home/index/index'); ?>">
				<span class="fixeBoxSpan"></span>
				<strong>返回首页</strong>
			</a>
		</li>
		<li class="fixeBoxLi BackToTop">
			<span class="fixeBoxSpan"></span>
			<strong>返回顶部</strong>
		</li>
	</ul>
</div>
<script>

        $.ajax({
            type:'post',
            url:'<?php echo url('home/commodity/cartNum'); ?>',
            dataType:'json',

            success:function(data){
                $('#eee').text(data)
            }
        })


</script>

</body>
</html>





<script>

    $.ajax({
        type:'post',
        url:'<?php echo url('home/commodity/cartNum'); ?>',
        dataType:'json',

        success:function(data){
            $('.eee').text(data)
        }
    })


</script>


</body>
</html>